﻿using System.Windows.Forms;

namespace TeamReview.UI
{
    internal class FieldColumnDescriptor
    {
        public FieldColumnDescriptor(string field, string caption, int width)
        {
            Field = field;
            Caption = caption;
            Width = width;
            SortMode = DataGridViewColumnSortMode.Automatic;
        }

        public FieldColumnDescriptor(string field, string caption, int width, DataGridViewColumnSortMode sort)
        {
            Field = field;
            Caption = caption;
            Width = width;
            SortMode = sort;
        }

        private string _field;
        public string Field
        {
            get { return _field; }
            set { _field = value; }

        }
        private string _caption;

        public string Caption
        {
            get { return _caption; }
            set { _caption = value; }
        }

        private int _width;

        public int Width
        {
            get { return _width; }
            set { _width = value; }
        }

        private DataGridViewColumnSortMode _sortMode;

        public DataGridViewColumnSortMode SortMode
        {
            get { return _sortMode; }
            set { _sortMode = value; }
        }


    }
}
